home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / share / alsa / pcm / dsnoop.conf < prev    next >
Text File  |  2008-10-07  |  2KB  |  116 lines

  1. #
  2. # dsnoop
  3. #
  4.  
  5. pcm.!dsnoop {
  6.     @args [ CARD DEV SUBDEV FORMAT RATE ]
  7.     @args.CARD {
  8.         type string
  9.         default {
  10.             @func refer
  11.             name defaults.pcm.dsnoop.card
  12.         }
  13.     }
  14.     @args.DEV {
  15.         type integer
  16.         default {
  17.             @func refer
  18.             name defaults.pcm.dsnoop.device
  19.         }
  20.     }
  21.     @args.SUBDEV {
  22.         type integer
  23.         default 0
  24.     }
  25.     @args.FORMAT {
  26.         type string
  27.         default {
  28.             @func refer
  29.             name defaults.pcm.dmix.format
  30.         }
  31.     }
  32.     @args.RATE {
  33.         type integer
  34.         default {
  35.             @func refer
  36.             name defaults.pcm.dmix.rate
  37.         }
  38.     }
  39.     type dsnoop
  40.     ipc_key {
  41.         @func refer
  42.         name defaults.pcm.ipc_key
  43.     }    
  44.     ipc_gid {
  45.         @func refer
  46.         name defaults.pcm.ipc_gid
  47.     }
  48.     ipc_perm {
  49.         @func refer
  50.         name defaults.pcm.ipc_perm
  51.     }
  52.     slave {
  53.         pcm {
  54.             type hw
  55.             card $CARD
  56.             device $DEV
  57.             subdevice $SUBDEV
  58.         }
  59.         format $FORMAT
  60.         rate $RATE
  61.         period_size {
  62.             @func refer
  63.             name {
  64.                 @func concat
  65.                 strings [
  66.                     "cards."
  67.                     {
  68.                         @func card_driver
  69.                         card $CARD
  70.                     }
  71.                     ".pcm.dsnoop.period_size"
  72.                 ]
  73.             }
  74.             default 1024
  75.         }        
  76.         period_time {
  77.             @func refer
  78.             name {
  79.                 @func concat
  80.                 strings [
  81.                     "cards."
  82.                     {
  83.                         @func card_driver
  84.                         card $CARD
  85.                     }
  86.                     ".pcm.dsnoop.period_time"
  87.                 ]
  88.             }
  89.             default -1
  90.         }        
  91.         periods {
  92.             @func refer
  93.             name {
  94.                 @func concat
  95.                 strings [
  96.                     "cards."
  97.                     {
  98.                         @func card_driver
  99.                         card $CARD
  100.                     }
  101.                     ".pcm.dsnoop.periods"
  102.                 ]
  103.             }
  104.             default 16
  105.         }
  106.     }
  107.     hint {
  108.         show {
  109.             @func refer
  110.             name defaults.namehint.extended
  111.         }
  112.         description "Direct sample snooping device"
  113.         device $DEV
  114.     }
  115. }
  116.